package com.goodving.guli.bt.weight.family;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.goodving.guli.R;
import com.goodving.guli.bt.DimPanelFragment;
import com.goodving.guli.bt.ui.DimPanelBottomBar;

/**
 * Created by john on 2015/12/16.
 */
public class fr extends DimPanelFragment {
    public static final String f10249a = "TITLE";
    public static final String f10250b = "CONTENT";
    public static final String f10251c = "NEGATIVETEXT";
    public static final String f10252d = "POSITIVETEXT";
    private TextView f10253e;
    private TextView f10254f;
    private DimPanelBottomBar f10255g;
    private String f10256h;
    private String f10257i;
    private String f10258j;
    private String f10259k;

    protected int inflateLayout() {
        return R.layout.fragment_logoutcommon;
    }

    public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        View onCreateView = super.onCreateView(layoutInflater, viewGroup, bundle);
        this.f10256h = getArguments().getString(f10249a) == null ? f10249a : getArguments().getString(f10249a);
        this.f10257i = getArguments().getString(f10250b) == null ? f10250b : getArguments().getString(f10250b);
        this.f10258j = getArguments().getString(f10251c) == null ? f10251c : getArguments().getString(f10251c);
        this.f10259k = getArguments().getString(f10252d) == null ? f10252d : getArguments().getString(f10252d);
        this.f10253e = (TextView) onCreateView.findViewById(R.id.logout_title);
        this.f10253e.setText(this.f10256h);
        this.f10254f = (TextView) onCreateView.findViewById(R.id.logout_content);
        this.f10254f.setText(this.f10257i);
        this.f10255g = (DimPanelBottomBar) onCreateView.findViewById(R.id.dimbtmbar);
        this.f10255g.m14981a(this.f10259k);
        this.f10255g.m14984b(this.f10258j);
        return onCreateView;
    }
}
